package com.winter.portal.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 用户角色列表
 * </p>
 *
 * @author jzyan
 * @since 2023-02-07
 */
@Data
public class UserRoleVO implements Serializable {

    @ApiModelProperty("已分配角色id集合")
    private Set<Long> roleIds;
    @ApiModelProperty("角色列表")
    private List<Role> roles;

    @Data
    public static class Role {
        @ApiModelProperty("id")
        private Long value;
        @ApiModelProperty("角色名称")
        private String title;
    }

}
